package com.itheima.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.goods.pojo.Goods;
import com.itheima.order.dao.GoodsDao;
import com.itheima.order.service.GoodsService;
import org.springframework.stereotype.Service;

@Service("GoodsService")
public class GoodsServiceImpl extends ServiceImpl<GoodsDao,Goods> implements GoodsService {
    @Override
    public Goods findGoodsById(Integer goodId) {
        Goods goods = baseMapper.selectById(goodId);
        return goods;
    }
}
